// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   PatrocinantesAction.java

package org.fiel.struts.actions;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import org.apache.struts.action.*;
import org.fiel.commons.jdbc.Finder;
import org.fiel.persistence.PatrocinantesPersistor;

// Referenced classes of package org.fiel.struts.actions:
//            FielAction

public class PatrocinantesAction extends FielAction
{

    public PatrocinantesAction()
    {
    }

    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
        throws IOException, ServletException
    {
        String rol = obtenerRol(request);
        List resultados = getResultados(rol);
        request.getSession().setAttribute("patrocinantes", resultados);
        ActionForward retorno = mapping.findForward("listarPatrocinantes");
        return retorno;
    }

    protected List getResultados(String rol)
    {
        Finder persistor = new PatrocinantesPersistor();
        ArrayList ls = new ArrayList();
        List resultados = persistor.FindAll(ls);
        return resultados;
    }
}
